<div>
	<a style="float: left; width: 278px;color: white" href="<?php echo url_create('site', 'upload') ?>" class="buttons spaceBottom">
		<?php echo lang('upload_right') ?>
	</a>
	<div class="clear"></div>
</div>
<div class="box darkBox">
    <h3>
		<?php echo lang('new_photos') ?>
	</h3>
    <div>
		<?php foreach ($newImages as $newImage) { ?>
			<div class="photoListItemSmall">
				<a href="<?php echo url_create('site', 'photo', 'index', $newImage->id) ?>">
					<div class="thumbnail">
						<img src="<?php echo image_url($newImage->thumb2) ?>" alt="<?php echo $newImage->title ?>">
					</div>
					<div class="info">
						<h3>
							<?php echo smileys_parse($newImage->title) ?>
						</h3>
						<div class="stats">
							<span title="<?php echo lang('views') ?>" class="views"><?php echo $newImage->views ?></span>
							<span title="<?php echo lang('comments') ?>" class="comments"><?php echo $newImage->comments ?></span>
							<span title="<?php echo lang('likes') ?>" class="likes"><?php echo $newImage->likes ?></span>
						</div>
					</div>
					<div class="clear">
					</div>
				</a>
			</div>
		<?php } ?>
	</div>

</div>
<div class="fixedScrollDetector" data-fixedtop="49"></div>
<div class="fixedScroll fixedWidth" style="position: relative;">

	<div class="box darkBox">
		<h3>
			<?php echo lang('may_you_like') ?>
		</h3>
		<div>
			<?php foreach ($likeImages as $likeImage) { ?>
				<div class="photoListItemSmall">
					<a href="<?php echo url_create('site', 'photo', 'index', $likeImage->id) ?>">
						<div class="thumbnail">
							<img src="<?php echo image_url($likeImage->thumb2) ?>" alt="<?php echo $likeImage->title ?>">
						</div>
						<div class="info">
							<h3>
								<?php echo smileys_parse($likeImage->title) ?>
							</h3>
							<div class="stats">
								<span title="<?php echo lang('views') ?>" class="views"><?php echo $likeImage->views ?></span>
								<span title="<?php echo lang('comments') ?>" class="comments"><?php echo $likeImage->comments ?></span>
								<span title="<?php echo lang('likes') ?>" class="likes"><?php echo $likeImage->likes ?></span>
							</div>
						</div>
						<div class="clear">
						</div>
					</a>
				</div>
			<?php } ?>
		</div>
	</div>
	<?php if ($voteImage) { ?>
		<div class="box highlightBox">
			<h3>
				<?php echo lang('vote_image') ?></h3>
			<div class="photoListItemSmall last">
				<a href="<?php echo url_create('site', 'photo', 'index', $voteImage->id) ?>">
					<div class="thumbnail">
						<img src="<?php echo image_url($voteImage->thumb2) ?>" alt="<?php echo $voteImage->title ?>">
					</div>
					<div class="info">
						<h3>
							<?php echo smileys_parse($voteImage->title) ?>
						</h3>
					</div>
					<div class="clear">
					</div>
				</a>
			</div>
		</div>
	<?php } ?>
</div>
